package com.zdj.question;

/**
 * @author zdj
 * @date 2023-03-27 19:21
 */

//hide-start
public class FindDigitNumber {

    public static void main(String[] args) {
//        Object solution = FindDigitNumberSolution.solution(args[0]);
        Object solution = FindDigitNumberSolution.solution("inrtiong566yJava234657kjfqwecv546");
        System.out.print(solution);
    }
}
//hide-end
class FindDigitNumberSolution {
    public static Object solution(String str) {
        String s = str;
        String[] split = s.split("[^0-9]");
        String tmp = "";

        for (int i = 0; i < split.length; i++) {
            if (tmp.length() < split[i].length()) {
                tmp = split[i];
            }
        }
        return tmp;
    }
}